#include<iostream>
#include<set>
using namespace std;
set<double>S;
int main()
{
	int n, x0, y0;
	cin >> n >> x0 >> y0;
	int ans = 0;
	while (n--) {
		int a, b;
		cin >> a >> b;
		if (a == x0)ans = 1;
		else {
			double res = (double)(b - y0) / (double)(a - x0);
			S.insert(res);
		}
	}
	cout << S.size() + ans << endl;
	return 0;
}